﻿using System;
using UnityEngine;

namespace RootMotion
{
	// Token: 0x020001E1 RID: 481
	public static class Warning
	{
		// Token: 0x06000A17 RID: 2583 RVA: 0x00036843 File Offset: 0x00034C43
		public static void Log(string message, Warning.Logger logger, bool logInEditMode = false)
		{
			if (!logInEditMode && !Application.isPlaying)
			{
				return;
			}
			if (Warning.logged)
			{
				return;
			}
			if (logger != null)
			{
				logger(message);
			}
			Warning.logged = true;
		}

		// Token: 0x06000A18 RID: 2584 RVA: 0x00036874 File Offset: 0x00034C74
		public static void Log(string message, Transform context, bool logInEditMode = false)
		{
			if (!logInEditMode && !Application.isPlaying)
			{
				return;
			}
			if (Warning.logged)
			{
				return;
			}
			Debug.LogWarning(message, context);
			Warning.logged = true;
		}

		// Token: 0x040006A1 RID: 1697
		public static bool logged;

		// Token: 0x020001E2 RID: 482
		// (Invoke) Token: 0x06000A1A RID: 2586
		public delegate void Logger(string message);
	}
}
